package org.graduation.utils;

import java.util.Random;

public class MyRandom {
    private static final String TABLE = "1234567890abcdefghijklmnopqrstuvwxyz";
    private Random random = new Random();

    public String createCode() {
        StringBuffer stringBuffer = new StringBuffer();
        for (int i = 0; i < 6; i++) {
            stringBuffer.append(TABLE.charAt(random.nextInt(TABLE.length())));
        }
        return stringBuffer.toString().toUpperCase();
    }
}
